# --**coding:utf-8**--
# config.py  -->  提供各机器及查询信息的封装
# author:hemq


# 225.5调用量地址
interPath = '/home/linkface/log_process_stat/api_logs'

# query channel
channelPath = '/data/logs/thin/log/cloud-facade'

# 业务
businessPath = '/data/logs/app/facade'
businessCloudApiPath = '/data/logs/app/cloud-api'

channelIp = '100.66.225.5'
# ip list
ipList = {
    '100.73.18.119': {'user': 'root', 'pwd': 'Aa132123.', 'port': 19641},
    '100.73.18.118': {'user': 'root', 'pwd': 'Aa132123.', 'port': 19641},
    '100.73.18.124': {'user': 'root', 'pwd': 'Aa132123.', 'port': 19641},
    '100.73.18.123': {'user': 'root', 'pwd': 'Aa132123.', 'port': 19641},
    '100.66.225.5': {'user': 'linkface', 'pwd': 'linkfaceRD', 'port': 22}
}

errorInfo = {
        'channel':'渠道为空',
        'interface':'接口为空',
        'date':'时间为空',
        'serveiceip':'ip 为空',
        'appID':'appID 为空',

    }
# http code
httpCode = {
    '200': """ '"http_status":"200"' """,
    '400': """ '"http_status":"400"' """,
    '401': """ '"http_status":"401"' """,
    '403': """ '"http_status":"403"' """,
    '500': """ '"http_status":"500"' """,
}

# res --t
errorResponse = {
    'code': '1001',
    'status': 'fail',
    'reason': 'ip not exist'
}

# res --s
interfaceNum = {
    'logNum': {},
    'dbNum': {}
}
dbNum = {
    'logNum': {},
    'dbNum': {}
}
queryContent = {
    'interface': '1',
    'channel': '2',
    'encryption': '3',
}
parms = {
    'code':1002,
    'reason':''
}
